#include  <math.h>
#include  <stdio.h>
int main(void)											//主函数首部
{ 
    /*************** Begin ***************/
    double rate, capital;
    int n;
    printf("Please enter rate, year, capital:");
    scanf("%lf,%d,%lf", &rate, &n, &capital);
    for(int i = 1; i <= n; ++i) {
        capital += capital * rate; 
    }
    printf("deposit = %.6f", capital);
    
	/*************** End ***************/
    return 0;
}